package com.zang.quartz.task;

import com.zang.util.SendMallUtil;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;

/**
 * @author Zhang Qiang
 * @Date 2019/9/2 11:30
 */
public class MailJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        String email = "137416943@qq.com";
        String theMe = "主题";
        String content = "这是内容";

        System.out.println("now date : " + LocalDateTime.now());
        System.out.println("send maill : " + content);
        //SendMallUtil.sendMail(email, theMe, content);
        System.out.println("execute MailJob ");
    }

}
